package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 运输方式实体类
 *
 * @author 吴旭
 */
public class ShippingTypeEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -4134979677475826557L;
    private Long TypeId;
    private String ShippingTypeNo;        // 运输方式编号
    private String ShippingTypeName;      // 运输方式名

    public Long getTypeId() {
        return TypeId;
    }

    public String getShippingTypeNo() {
        return ShippingTypeNo;
    }

    public String getShippingTypeName() {
        return ShippingTypeName;
    }

    public void setTypeId(Long TypeId) {
        this.TypeId = TypeId;
    }

    public void setShippingTypeNo(String ShippingTypeNo) {
        this.ShippingTypeNo = ShippingTypeNo;
    }

    public void setShippingTypeName(String ShippingTypeName) {
        this.ShippingTypeName = ShippingTypeName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ShippingTypeEntity)) {
            return false;
        }

        final ShippingTypeEntity that = (ShippingTypeEntity) o;

        return new EqualsBuilder()
            .append(this.getTypeId(), that.getTypeId())
            .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getTypeId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
